package com.micro.monitoring;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

public class BlankFragment extends Fragment {


    public BlankFragment() {
        // Required empty public constructor
    }

    public static com.micro.monitoring.BlankFragment newInstance(String s) {
        Bundle args = new Bundle();
        args.putString("BlankFragment", s);
        com.micro.monitoring.BlankFragment fragment = new com.micro.monitoring.BlankFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_blank, container, false);
        TextView textView = view.findViewById(R.id.tv);
        Bundle bundle = getArguments();
        assert bundle != null;
        String args = bundle.getString("BlankFragment");
        textView.setText(args);
        return view;
    }

}
